// mongodb CRUD
var mongodb = module.exports;

var mongoPool =  require('./dao-pool');

var _pool;

var  mongodbClient ;
var NND ;

NND.init = function(app){
	_pool = mongoPool.mpool;
    mongodbClient =  mongoPool .dbopen(app);
};


mongodb.init = function(app) {
	if (!!_pool){
		return mongodbClient;
	} else {
		NND.init(app);
		return mongodbClient;
	}
};











